package com.theo.service.impl;

import com.theo.entity.RefutationInfo;
import com.theo.mapper.RefutationInfoMapper;
import com.theo.mapper.RumourInfoMapper;
import com.theo.service.RefutationInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Service
public class RefutationInfoServiceImpl extends ServiceImpl<RefutationInfoMapper, RefutationInfo> implements RefutationInfoService {

    @Autowired
    private RefutationInfoMapper refutationInfoMapper;

    @Override
    public int saveRefutationInfo(RefutationInfo refutationInfo) {
        return refutationInfoMapper.saveRefutationInfo(refutationInfo);
    }

    @Override
    public int deleteRefutationInfo(Integer id) {
        return refutationInfoMapper.deleteById(id);
    }

    @Override
    public int updateRefutationInfo(RefutationInfo refutationInfo) {
        return refutationInfoMapper.updateById(refutationInfo);
    }

    @Override
    public List<RefutationInfo> queryAllRefutationInfo() {
        return refutationInfoMapper.queryAllRefutationInfo();
    }

    @Override
    public RefutationInfo queryRefutationInfoById(Integer id) {
        return refutationInfoMapper.queryRefutationInfoById(id);
    }
}
